#ifndef USER_SWITCH_H
#define USER_SWITCH_H

#include <QWidget>
#include "util/util.h"
#include "softkey/softkeys.h"
namespace Ui {
class UserSwitch;
}

class UserSwitch : public QWidget
{
    Q_OBJECT

public:
    explicit UserSwitch(QWidget *parent = 0);
    ~UserSwitch();
    int pbUserClicked;

    void setupUiAppearance();
    void connectUserButtons();
    void connectUiButtons();
    void onUserButtonClicked(int userNumber);
    void hideWidget();
    void onSwitchUser();
signals:
    void returnMenu();
private slots:
    void pushReturnMenu();
    bool isPasswordRight(const int &pbUserClicked);

private:
    Ui::UserSwitch *ui;

};
//#include "util/util.h"
//extern QString userPasswd[4];
#endif // USER_SWITCH_H
